{extend name="index_layout"/}
{block name="main"}
<form class="layui-form" method="post">
    <input type="hidden" name="goods_id" value="{$goods_id}">


    {volist name="data" id="vo"}
    <div class="layui-form-item">
        <label class="layui-form-label"><span style="color: red">规格</span> {$vo.suk}</label>
        <div class="layui-input-block">
            <input type="text" value="{$vo.price}" lay-verify="required|number" autocomplete="off" placeholder=""
                   class="layui-input">
        </div>
        <label class="layui-form-label">可用积分</label>
        <div class="layui-input-block">
            <input type="text" name="suk[{$vo.id}][coupons]" value="{$vo.coupons}" lay-verify="required|number"
                   autocomplete="off" placeholder="可使用购物券金额"
                   class="layui-input">
        </div>

        <label class="layui-form-label">每日返现积分</label>
        <div class="layui-input-block">
            <input type="text" name="suk[{$vo.id}][one_day_jf]" value="{$vo.one_day_jf}" lay-verify="required|number"
                   autocomplete="off" placeholder="每日返现积分"
                   class="layui-input">
        </div>
    </div>
    {/volist}

    <div class="layui-form-item">
        <label class="layui-form-label">分享返现比例(%)</label>
        <div class="layui-input-block">
            <input type="text" name="hy_rate" value="{$goods_info.hy_rate}" lay-verify="required|number" autocomplete="off" placeholder="分享返现比例"
                   class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <p style="color: red;margin-left: 80px!important;">注意：1元=={:config('site.one_yuan_jf')}积分,不可超过等于 价格<p>
    </div>


    <div class="layui-form-item layer-footer">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit="">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>
{/block}
{block name="script"}
<script type="text/javascript">
    layui.use('yznForm', function () {
        var yznForm = layui.yznForm;
        yznForm.bindevent($("form.layui-form"));
    });
</script>
{/block}